package cn.com.cetccst.tools;

import android.content.Context;

import org.slf4j.Logger;

import cn.com.cetccst.kvmanager.IKVStore;
import cn.com.cetccst.tools.kv.CommonKV;
import cn.com.cetccst.tools.log.CommonLogger;
import cn.com.cetccst.tools.ui.ThreadSafeToast;

public class ToolsManager {

    public static void initialize(Context context) {
        CommonLogger.initialize(context);
        CommonKV.initialize(context);
        ThreadSafeToast.initialize(context);
    }

    /**
     * 可以指定接入SDK的日志输入的目录
     *
     * @param logger
     */
    public static void setLogger(Logger logger) {
        CommonLogger.setLogger(logger);
    }

    public static void setKVStore(IKVStore kvStore) {
        CommonKV.setKvStore(kvStore);
    }
}
